#include <iostream>
#include <string.h>
using namespace std;

class Cat{
    public:
    Cat(const char* _name,int _age){
       name = new char[20];
        strcpy(name,_name);
        age = _age;
    }
    void show(){
        cout<<name<<endl;
        cout<<age<<endl;
    }
    ~Cat(){
        delete []name;
    }
    private:
    char *name;
    int age;
};


int main(int argc, char const *argv[])
{
    Cat c1("name",10);
    Cat c2 = c1;
    c2.show();
    return 0;
}
